package com.test.oom;

import java.util.ArrayList;
import java.util.List;

public class OverHeadLimitDemo {
    public static void main(String[] args) {
        System.out.println(sun.misc.VM.maxDirectMemory()/(double)1024/1024);
    }
}
